Rename some rel truncation related constants at the top of vacuumlazy.c

  • Jump to comment-1
    pg@bowt.ie2022-07-19T03:47:49+00:00
    I propose to rename some of the rel truncation related constants at the top of vacuumlazy.c, per the attached patch. The patch consolidates related constants into a single block/grouping, and imposes a uniform naming scheme. -- Peter Geoghegan
    • Jump to comment-1
      tgl@sss.pgh.pa.us2022-07-19T03:55:55+00:00
      Peter Geoghegan <pg@bowt.ie> writes: > I propose to rename some of the rel truncation related constants at > the top of vacuumlazy.c, per the attached patch. The patch > consolidates related constants into a single block/grouping, and > imposes a uniform naming scheme. Um ... you seem to have removed some useful comments? Personally I wouldn't do this, as I don't think the renaming brings much benefit, and it will create a hazard for back-patching any fixes that might be needed in that code. I'm not hugely upset about it, but that's the way I'd vote if asked. regards, tom lane
      • Jump to comment-1
        pg@bowt.ie2022-07-19T04:07:59+00:00
        On Mon, Jul 18, 2022 at 8:55 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > Um ... you seem to have removed some useful comments? I don't think that the stuff about making them into a GUC is useful myself. > Personally I wouldn't do this, as I don't think the renaming > brings much benefit, and it will create a hazard for back-patching > any fixes that might be needed in that code. I'm not hugely upset > about it, but that's the way I'd vote if asked. In that case I withdraw the patch. FWIW I wrote the patch during the course of work on new feature development. A patch that added a couple of similar constants a bit further down. Seemed neater this way, but it's certainly not worth arguing over. -- Peter Geoghegan